/*
 * @Author: aum
 * @Date: 2021-08-27 19:38:28
 * @LastEditors: aum
 * @LastEditTime: 2021-08-30 09:49:36
 * @Description: 测试文件
 * @FilePath: \vue3-demo-h\tests\e2e\specs\test.js
 */
// https://docs.cypress.io/api/introduction/api.html

describe('登陆测试', () => {
  it('Visits the app root url', () => {
    cy.visit('/tool/login')
    cy.get('input[name="username"]').clear().type('XATEST001')
    cy.get('input[name="password"]').clear().type('Zbxy846840')
    cy.get('button[type="submit"]').click({ force: true })
    cy.wait(2000)
    cy.url().should('contain', '/tool/home')
  })
})
